package net.oschina.app.fragment;

import net.oschina.app.R;
import net.oschina.app.adapter.TabVPAdpater;
import net.oschina.app.fragment.tweetsfragments.HotFragment;
import net.oschina.app.fragment.tweetsfragments.MyFragment;
import net.oschina.app.fragment.tweetsfragments.NewFragment;
import net.oschina.app.util.UIUtils;

/**
 * Created by YL on 2017/3/31.
 */

public class TweetsViewPagerFragment extends BaseTabPageFragment {
    String[] msgTitles = UIUtils.getStrings(R.array.tweets_viewpage_arrays);
    @Override
    protected int getFirstItem() {
        return 0;
    }

    @Override
    public void setupTab(TabVPAdpater adpater) {
        adpater.addTab(msgTitles[0],NewFragment.class,null);
        adpater.addTab(msgTitles[1],HotFragment.class,null);
        adpater.addTab(msgTitles[2],MyFragment.class,null);
    }
}
